<div id="content">
    <?php

include("./PDO/PdoSexe.php");
include("./class/Sexe.php");

$sexe = new PdoSexe();
$sexe = $sexe->readAll();

?>
    <form id="validate_form" action="index.php?route=categorie&action=traitement_ajout" method="post">
        <label>Catégorie</label>
        <input type="text" name="nom" id="nom" class="validate[required]"/><span id="mess_exist"></span>
                
        <label>Poid Minimum</label>
        <input type="text" name="min" id="min" class="validate[required]"/><span id="mess_exist"></span>
                
        <label>Poid Maximum</label>
        <input type="text" name="max" id="max" class="validate[required]"/><span id="mess_exist"></span>
                
        <label>Sexe</label>
    <select name="IDSEXE" size="1">
        <?php
        foreach ($sexe as $unsexe) {
            echo '<option value="' . $unsexe["IDSEXE"] . '">' . $unsexe["INTITULESEXE"] . " " .  '</option>';
        }
        ?>
    </select>  <br/>
    <input type="submit" id="valider" />
    </form>
</div>
